package com.ljr.v1;

import com.ljr.v2.MetricsStorage;

import java.util.List;

/**
 * @author ljr
 * @version 1.0
 * @description: 集合类
 * @date 2021/12/26 17:52
 */
public class Aggregator {

    //最大响应时间
    private Long maxResponseTime;

    //平均响应时间
    private Long avgResponseTime;

    //调用次数
    private Long numOfCall;

    public Long max(List<Long> responseTimes) {
        return maxResponseTime;
    }

    public Long avg(List<Long> responseTimes) {
        return avgResponseTime;
    }

    public Long count(List<Long> v) {
        return numOfCall;
    }
}
